package com.cqhilink.api.common.utils;

import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * 常量定义
 * Created by wangzhen on 2016/7/4.
 */
public class Constant {

    public final static String GRANT_KEY = "GRANT_KEY";

//    /**
//     * 短信发送地址
//     */
//    public final static String SMS_URL = ConfigPropertyTool.getValue("sms_url");
//    /**
//     * 短信发送账号
//     */
//    public final static String SMS_ACCOUNT = ConfigPropertyTool.getValue("sms_account");
//    /**
//     * 短信发送密码
//     */
//    public final static String SMS_PASSWORD = ConfigPropertyTool.getValue("sms_password");
//    /**
//     * 核心线程数
//     */
//    public final static int CORE_POOL_SIZE = Integer.parseInt(ConfigPropertyTool.getValue("threadPool.corepool_size") == null ? "10"
//            : ConfigPropertyTool.getValue("threadPool.corepool_size"));
//
//    /**
//     * 线程最大容量
//     */
//    public final static int MAXIMUM_POOL_SIZE = Integer.parseInt(ConfigPropertyTool.getValue("threadPool.maximum_pool_size") == null ? "500"
//            : ConfigPropertyTool.getValue("threadPool.maximum_pool_size"));
//
//    /**
//     * 缓存队列容量
//     */
//    public final static int BLOCKING_QUEUE = Integer.parseInt(ConfigPropertyTool.getValue("threadPool.blocking_queue") == null ? "1000"
//            : ConfigPropertyTool.getValue("threadPool.blocking_queue"));
//
//
//    /**
//     * 构造一个线程池 ,用于调用第三方发送短信
//     */
//    public final static ThreadPoolExecutor PRODUCERPOOL = new ThreadPoolExecutor(Constant.CORE_POOL_SIZE,
//            Constant.MAXIMUM_POOL_SIZE, 180, TimeUnit.SECONDS,
//            new LinkedBlockingQueue<Runnable>(
//                    Constant.BLOCKING_QUEUE),
//            new ThreadPoolExecutor.DiscardOldestPolicy());


    //作业区id白名单
    public final static String[] WORK_ZONE ={"XNJV3M3kqvjkKjumoBm5Yup5562SW9Hz", "XNc6FOCn5aR5UYPaDxjYFj7hWvCBdTNn", "XNFMRpuotf8ywdmBNbSn9LN8Ts9MqEvX", "XNDqoyGGZxYxeKlvEZjexAfMbhMDfLOk", "XN2hQkxx2n074fMIOJU6YeGTSCv2O9Z8",
            "XN8AiynNee5jLhi1rMqzvpUmyzKMDsiq", "XNkcE9Sd3YBecPw4PJhB8b3AjRM2Xq1p", "XNkib1xjwzOHfKNCsqSJc7Xq6Zr3g1OK","XNNJ34j31uamyfnmwZw7SfSgxWg0hjBZ","XN2AHaQ6oAlpniFo6bW1JC6os9D8iTVB","XNvmzlHMQTLLaMPimF0j8cvtGtHF18HH",
            "XNR205qOYkpYBvzyUjKoSndUwS8xnUen","XNBbvAhs4tK5ZHzZVKLaekgeQBnGkYZq","XNf8ZHPKDJuL6GGnn2KMxsk96rSAig0b","XNv8XLV2XxYKzlpJb8fIxjj0HgC6OpWl","XNLioFqX1RuJPpnMAdGKWzR9xyBqBuYA"};

}
